//logs.js
//var util = require('../../utils/util.js')
var app = getApp()
Page({
  data: {
    logs: [],
    ordertype:[{ 
      '01':'等待支付',
      '10': '继续支付',
      '11':'已支付订单',
      '20':'订单退款中',
      '21':'已退款订单',
      '31':'订单完成',
      '41':'已取消订单',
      '50':'入住中'
    }]
  },
  onLoad: function (options) {
    wx.showNavigationBarLoading()
    console.log(options.no)
    console.log(options.user_id)
    var that = this
    app.getJson('/wxapp/base/orderdetailinfo',{'no':options.no,'sign':'', 'token': ''},function(res){
      console.log(res)
      that.setData({
        orderinfo: res.data
      })
    })
    // 页面初始化 options为页面跳转所带来的参数
  }
})
